<?php
$hostname = "localhost";
$database = "snm001";
$username = "root";
$password = "";
$databaseConnect = mysql_connect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);

include_once 'Zend/Db/Adapter/Pdo/Mysql.php';
$db = new Zend_Db_Adapter_Pdo_Mysql(array(
		'host'     => $hostname,
		'username' => $username,
		'password' => $password,
		'dbname'   => $database,
));

include_once 'Zend/Registry.php';
Zend_Registry::set('db', $db);

include_once 'Zend/Db/Table.php';
Zend_Db_Table::setDefaultAdapter($db);

include_once 'Zend/Session.php';
Zend_Session::start();
?>